package cn.imust.www.finalapplication;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.util.Log;

/**
 * Created by lenovo on 2020/7/3.
 */

public class MyOPenHeper extends SQLiteOpenHelper {
    public MyOPenHeper(Context context){
        super(context,"finaldb",null,1);

    }
    @Override
    public void onCreate(SQLiteDatabase db) {
        db.execSQL("create table cdinfo(id varchar(20), type varchar(20)");
        Log.i("Student","创建成功0");
    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

    }
}
